package com.fengzai.service.impl;

import com.fengzai.bean.User;
import com.fengzai.service.UserService;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by  峰仔  on 2017-08-19
 */
public class UserServiceImpl implements UserService {

    @Override
    public List<User> getUserLIst(String userName) {
        System.out.println("接收的userName:  " + userName);
        List<User> list = new ArrayList<>();
        list.add(new User("峰仔", 20));
        list.add(new User("小峰峰", 21));
        list.add(new User("峰峰", 22));
        return list;
    }

    @Override
    public User getUser(String userId) {
        System.out.println("接收的userId:  " + userId);
        return new User("峰仔", 23);
    }
}
